package com.zyh.system.domain;

/**
 * @Author zyh
 * @Date 2024/8/1 17:25
 * @Description
 */

public class Movie {
    private String movieName;
    private String movieType;

    public Movie() {
    }

    public Movie(String movieName, String movieType) {
        this.movieName = movieName;
        this.movieType = movieType;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getMovieType() {
        return movieType;
    }

    public void setMovieType(String movieType) {
        this.movieType = movieType;
    }

    @Override
    public String toString() {
        return "Movie{" +
                "movieName='" + movieName + '\'' +
                ", movieType='" + movieType + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Movie movie = (Movie) o;

        if (movieName != null ? !movieName.equals(movie.movieName) : movie.movieName != null) return false;
        return movieType != null ? movieType.equals(movie.movieType) : movie.movieType == null;
    }

    @Override
    public int hashCode() {
        int result = movieName != null ? movieName.hashCode() : 0;
        result = 31 * result + (movieType != null ? movieType.hashCode() : 0);
        return result;
    }
}
